{% for inquiry in inquiries %}
{# Cache all the variables to be used so we don't have to 
make calls more than once to do if statments #}
{% set text = inquiry.get_text() %}
{% set figure_paths = inquiry.get_figure_paths() %}
{% set tables = inquiry.get_tables() %}

<h1> {{ inquiry.get_name() }}</h1>
<pre> {{inquiry.get_parameter_text()|default('',true) }}</pre>
<pre>{{ inquiry.get_text()|default('',true) }} </pre>
{% if not figure_paths is none %}
<h2> Figures </h2>
{% for path in figure_paths %}
<img src="{{ path }}">
{% endfor %}
{% endif %}

{% if not tables is none %}
<h2> Tables </h2>
{% for table in tables %}
<table border="2">
{% for row in table %}
<tr>
{% for value in row %}
<td>{{ value }}</td>
{% endfor %}
</tr>
{% endfor %}
</table>
{% endfor %}
{% endif %}

{% endfor %}

